package com.ujs.service.impl;

import com.ujs.dao.LogDao;
import com.ujs.pojo.Log;
import com.ujs.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogDao logDao;
    @Override
    public List<Log> findAll(){
        return logDao.findAll();
    }
    @Override
    public Log findById(String id){
        return logDao.getOne(id);
    }
    @Override
    public void save(Log log){
        logDao.save(log);
    }
    @Override
    public void deleteById(String id){
        logDao.deleteById(id);
    }
}
